package com.adopapa.nezhacloud.gateway;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;


@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = "com.adopapa.nezhacloud.innerapi")
@ComponentScans({ //
		@ComponentScan("com.adopapa.nezhacloud"), //
		@ComponentScan("com.adopapa.nezhacloud.innerapi"), //
})
@ImportAutoConfiguration({FeignAutoConfiguration.class})
public class NezhaGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(NezhaGatewayApplication.class, args);
    }
    
    
//    @Bean
//    public FeignContext feignContext() {
//    	return new FeignContext();
//    }
//    
    
}
